Add CodeQL MCP server with database caching and security analysis workflow#10115
Closed
Add CodeQL MCP server with database caching and security analysis workflow#10115
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for CodeQL as a shared agentic workflow
Add CodeQL MCP server as shared workflow import
Jan 15, 2026
pelikhan
reviewed
Jan 15, 2026
| @@ -0,0 +1,213 @@ | |||
| --- | |||
| # CodeQL MCP Server | |||
- Removed comment header from YAML frontmatter - Moved all documentation to XML comment after frontmatter closing - Follows pattern from jupyter.md - Merged main branch Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
|
@copilot make sure the codeql db uses a GitHub action cache, the db creation is also part of the agentic steps. Update the dev agentic workflow to find security issues in the go source code |
…ysis - Added GitHub Actions cache for CodeQL database with key based on repo and SHA - Added automatic database creation with language detection (Go, JavaScript, Python, Java, Ruby, C#) - Database only created if not found in cache (conditional step) - Updated dev.md workflow to use CodeQL for Go security analysis instead of poem generation - Added imports for shared/mcp/codeql.md in dev workflow - Added security-events permission and create-issue safe output - Updated documentation to reflect automatic database creation and caching Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Done in commit 8ab7bf2:
|
Copilot
AI
changed the title
Add CodeQL MCP server as shared workflow import
Add CodeQL MCP server with database caching and security analysis workflow
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add CodeQL MCP Server Support
Add support for CodeQL as a shared agentic workflow in MCP similar to existing shared MCP servers (ast-grep, skillz, gh-aw, etc.), with automatic database caching and a security analysis workflow example.
Summary
Created a new shared MCP configuration file at
.github/workflows/shared/mcp/codeql.mdthat enables agentic workflows to use the CodeQL MCP server for semantic code analysis. The configuration includes automatic CodeQL database creation with GitHub Actions caching and language detection. Updated the dev workflow to demonstrate Go security analysis using CodeQL.Recent Changes
Latest commit: Added database caching and updated dev workflow
jupyter.mdpatternFeatures
Database Creation & Caching
codeql-db-{repository}-{sha}with fallback to previous commits/tmp/codeql-dbAvailable Tools
The CodeQL MCP server provides 6 tools for semantic code analysis:
register_database- Register a CodeQL databaseevaluate_query- Run full CodeQL queriesquick_evaluate- Quick-evaluate specific classes/predicatesdecode_bqrs- Decode results to CSV/JSONfind_class_position- Locate class positionsfind_predicate_position- Locate predicate positionsDev Workflow Enhancement
Updated
.github/workflows/dev.mdto demonstrate CodeQL usage for Go security analysis:Completed Tasks
.github/workflows/shared/mcp/codeql.mdconfiguration filemake fmt- passed ✓Usage Example
Related Links
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.